package com.example.emos.api.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author ：Supyo
 * @date ：Created in 2021/11/15 13:21
 * @description：
 */
@Schema(description = "添加考核模板表单")
@Data
public class InsertTemplateForm {
    /**
     * 考核模板名字
     */
    @NotEmpty(message = "title不能为空")
    private String title;
    /**
     * 分数
     */
    private Integer totalScore;
    /**
     * //评分标准id
     */
    @NotNull(message = "exam_rank_id不能为空")
    private Integer exam_rank_id;
    /**
     * 指标内容
     */
    @NotNull(message = "options不能为空")
    private Object options;
}
